<template>
  <div>
    <div class="header">
      <el-button type="primary" @click="hancleClick">Log out</el-button>
    </div>
    <div class="content">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>


export default {
  name: 'trainningheader',
  data() {
    return {
        
    }
  },
  methods:{
      async hancleClick(){
            await this.$store.dispatch('user/logout')
            this.$router.push('/login');
      }
  }
}
</script>
<style  scoped>
    .header{
        width: 100%;
        height:100px;
        background: #37638B;
    }
    .content{
      padding: 20px;
    }
</style>

